Skip to content

Add custom scheduler for pytest-xdist plugin #1542

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 20, 2022
Merged

Conversation

mkoura
Copy link
Collaborator

@mkoura mkoura commented Dec 20, 2022

Schedule long running tests optimally:

  • only single long-running test per pytest worker
  • long runnig tests are schduled as early as possible

Schedule long running tests optimally:
* only single long-running test per pytest worker
* long runnig tests are schduled as early as possible
@mkoura mkoura merged commit 434dc9e into master Dec 20, 2022
@mkoura mkoura deleted the xdist_scheduler branch December 20, 2022 12:31
@@ -33,6 +33,9 @@
# make sure there's enough time to stop all cluster instances at the end of session
workermanage.NodeManager.EXIT_TIMEOUT = 30

# use custom xdist scheduler
pytest_plugins = ("cardano_node_tests.pytest_plugins.xdist_scheduler",)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI this can be just a string:

pytest_plugins = "cardano_node_tests.pytest_plugins.xdist_scheduler"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants